﻿using System;
using System.Data;
using System.IO;
using YArchitech.LIB;

namespace YArchitech.DataModel
{
	public class HYMEPDatasourceReader
	{
		public HYMEPDatasourceReader()
		{
			this.sqlHelper = new SQLiteDataBaseHelper(Path.Combine(Product.DataLocation, "HYMEPDatasource.db"));
		}

		public DataTable GetPumpDataTable(string sTableName)
		{
			DataTable tableSchema = this.sqlHelper.GetTableSchema(sTableName);
			if (tableSchema != null)
			{
				return tableSchema;
			}
			return null;
		}

		private SQLiteDataBaseHelper sqlHelper;
	}
}
